#ifndef COMPILER_ONLINE
#include "header.cpp"
#endif

vector<int> nums;

void Test1()
{
    nums = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
    long long ret = Solution().getMax(nums);
    if (ret == 10)
    {
        cout << "通过用例1: 测试值是{1, 2, 3, 4, 5, 6, 7, 8, 9, 10};" << endl;
    }
    else
    {
        cout << "未通过用例1: 测试值是{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}" << endl;
    }
}

void Test2()
{
    nums = {-1, -2, -3, -4, -5, -6, -7, -8, -9, -10};
    long long ret = Solution().getMax(nums);
    if (ret == -1)
    {
        cout << "通过用例2: 测试值是{-1, -2, -3, -4, -5, -6, -7, -8, -9, -10};" << endl;
    }
    else
    {
        cout << "未通过用例2: 测试值是{-1, -2, -3, -4, -5, -6, -7, -8, -9, -10}" << endl;
    }
}

void Test3()
{
    nums = {-1, -2, -3, -4, -5, 0, 1, 2, 3, 4, 5};
    long long ret = Solution().getMax(nums);
    if (ret == 5)
    {
        cout << "通过用例3: 测试值是{-1, -2, -3, -4, -5, 0, 1, 2, 3, 4, 5};" << endl;
    }
    else
    {
        cout << "未通过用例3: 测试值是{-1, -2, -3, -4, -5, 0, 1, 2, 3, 4, 5}" << endl;
    }
}


int main()
{
    Test1();
    Test2();
    Test3();
    
    return 0;
}